@layout("/common/_container.html",{js:["/assets/modular/dbContentapproval/dbContentapproval.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">内容审核列表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-row">
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="padding: 9px 15px;width: 60px">单位:</label>
                                    <div class="layui-input-inline" style="width: 120px">
                                        <input id="department" name="department" class="layui-input" placeholder="单位名称"
                                               style="width: 120px;"/>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="padding: 9px 15px;width: 60px">应用系统:</label>
                                    <div class="layui-input-inline" style="width: 120px">
                                        <input id="system" name="system" class="layui-input" placeholder="应用系统名称"
                                               style="width: 120px;"/>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="padding: 9px 15px;width: 60px">服务类型:</label>
                                    <div class="layui-input-inline" style="width: 120px">
                                        <select name="servicetype" id="servicetype" lay-verify="select">
                                            <option value="">请选择</option>
                                            <option value="1">数据库服务</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="padding: 9px 15px;width: 60px">状态:</label>
                                    <div class="layui-input-inline" style="width: 120px">
                                        <select name="state" id="state" lay-verify="select">
                                            <option value="">请选择</option>
                                            <option value="0">待处理</option>
                                            <option value="1">已批准</option>
                                            <option value="2">已拒绝</option>
<!--                                            <option value="3">升级中</option>-->
<!--                                            <option value="4">升级完成</option>-->
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-left: 40px" id="checkContent">

                                <input type="radio" name="content" value="" title="全部">
                                <input type="radio" name="content" value="0" title="注册申请">
                                <!--<input type="radio" name="content" value="1" title="发布申请">-->
<!--                                <input type="radio" name="content" value="2" title="升级申请">-->
                                <input type="radio" name="content" value="3" title="下架申请">
                                <input type="radio" name="content" value="5" title="激活申请">

                                <div class="layui-inline" style="margin-left: 20px">
                                    <button id="btnSearch" class="layui-btn icon-btn" type="button">&emsp;筛选&emsp;
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="dbContentapprovalTable" lay-filter="dbContentapprovalTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    <!--    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>-->
    <!--    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>-->
    {{#  if(d.state == '1'){ }}
    <span>已批准</span>
    {{#  } else if(d.state == '2') { }}
    <span>已拒绝</span>
    {{#  } else{ }}
    <a class="layui-btn  layui-btn-normal  layui-btn-xs" lay-event="Approve">&nbsp;批准&nbsp;</a>
    <a class="layui-btn  layui-btn-normal  layui-btn-xs" lay-event="down">&nbsp;拒绝&nbsp;</a>
    {{#  } }}
</script>
@}